package appapi.service;

import appapi.Request.AccessPageReq;
import appapi.Vo.brider.AccessVO;
import appapi.Vo.brider.AddAccess;
import appapi.common.ResponseBean;
import appapi.entity.basic.UserInfo;
import appapi.entity.bridge.AccessControl;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

/**
 * @author hlm
 * @date
 * @description: 门禁设备
 */
@Repository
public interface AccessService extends IService<AccessControl> {

    /**
     * 分页查询门禁设备列表
     *
     * @return
     */
    PageInfo<AccessVO> getAccessByPage(AccessPageReq req);

    /**
     * 新增
     *
     * @return
     */
    ResponseBean insertAccess(AddAccess addAccess , UserInfo userInfo);


    /**
     * 删除
     *
     * @return
     */
    void delAccess(Long acceId);


    /**
     * 详情
     *
     * @return
     */
    ResponseBean getAccessModel(Long acceId);
}
